package com.wh1200.xmlless.test.model

import com.wh1200.mybatis.xmlless.annotations.JsonMappingProperty
import com.wh1200.xmlless.test.model.TestModel3
import com.baomidou.mybatisplus.annotation.FieldFill
import com.baomidou.mybatisplus.annotation.FieldStrategy
import com.baomidou.mybatisplus.annotation.TableField
import jakarta.persistence.Column
import jakarta.persistence.Id
import jakarta.persistence.Table
import jakarta.validation.constraints.NotNull

/**
 * @author 吴昊
 * @version 1.0
 * @date 2024/1/22 19:28
 * @since v0.0.0
 */
@Table(name = TestModel3.prefix + "abc")
class TestModel3 : com.wh1200.xmlless.test.model.BaseModel() {
  @Id
  var id: Int = 0

  @JsonMappingProperty
  var array1: Array<String> = arrayOf()

  @JsonMappingProperty
  var array2: IntArray = intArrayOf()

  companion object {
    const val prefix = "t_"
  }
}
